/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package object;

/**
 * 小方块
 *
 * @author XiaoLong
 */
public class Square {
    
    //方块的颜色
    private int image;
    //开始横坐标
    private int beginX;
    //开始纵坐标
    private int beginY;

    public Square(int image, int beginX, int beginY) {
        this.image = image;
        this.beginX = beginX;
        this.beginY = beginY;
    }

    public Square(int beginX, int beginY) {
        this.image = 0;
        this.beginX = beginX;
        this.beginY = beginY;
    }

    public int getImage() {
        return image;
    }

    public void setImage(int image) {
        this.image = image;
    }

    public int getBeginX() {
        return beginX;
    }

    public void setBeginX(int beginX) {
        this.beginX = beginX;
    }

    public int getBeginY() {
        return beginY;
    }

    public void setBeginY(int beginY) {
        this.beginY = beginY;
    }
//    @Override
//    public boolean equals(Object obj) {
//        if (obj instanceof Square) {
//            Square s = (Square) obj;
//            if ((s.getBeginX() == this.getBeginX() && (s.getBeginY() == this.getBeginY()))) {
//                return true;
//            }
//        }
//        return false;
//    }
}
